<h3>Piusa</h3>
<h4>Üldine</h4>
<table style="border:1px solid black;border-collapse:collapse;">
    <tr><td>Tallinn-Piusa-Tallinn:</td><td>{{service.distance}} km<br/></td></tr>
    <tr><td>Lisasõidud:</td><td>{{service.additionalDistance}} km<br/></td></tr>
    <tr><td>Sõidud kokku:</td><td>{{service.totalDistance()}} km<br/></td></tr>
    <tr><td>Bensu kulu:</td><td>{{service.casExpense}} l/100km<br/></td></tr>
    <tr><td>Bensu kulu:</td><td>{{service.kmCasExpense()}} l/km<br/></td></tr>
    <tr><td>Bensu kulu:</td><td>{{service.totalCasExpense()}} l<br/></td></tr>
    <tr><td>Bensu hind:</td><td>{{service.casCost}} EUR/l<br/></td></tr>
    <tr><td>Bensu kulu:</td><td>{{service.totalCasCost()}} EUR<br/></td></tr>
    <tr><td>Liikmeid kokku:</td><td>{{service.personsNumber()}}<br/></td></tr>
    <tr><td>Puidu hind:</td><td>{{service.volumeCost}} EUR/ruum<br/></td></tr>
    <tr><td>Puid kokku:</td><td>{{service.getHouse().totalVolume()}} ruumi ({{service.getHouse().totalVolume() * 1000}} ruumi liitrit) ({{service.getHouse().totalVolumeCost()}} EUR;)<br/></td></tr>
</table>
<h4>Kütmine</h4>
<h5>Hüve saaja, arvestatav persoon ja koht</h5>
<ul>
    <li data-ng-repeat="heater in service.getHeaters()">{{heater.name}}
        <ul>
            <li data-ng-repeat="day in heater.heatingDays">{{day.dayName}}, <b>{{day.getHeatingPrice()}} EUR</b>
                <ul>
                    <li data-ng-repeat="heatingProcedure in day.countGroups">{{heater.volume}} L (kulu <b>{{heatingProcedure.getProcedurePrice()}} EUR'i {{heatingProcedure.getParticipantsNumber()}} isikule, ~{{heatingProcedure.getPricePerPerson()}} EUR isiku kohta</b>)
                        <ol>
                            <li data-ng-repeat="group in heatingProcedure.groups">{{group.name}} : {{group.size()}} isikut kokku,  ~<b>{{heatingProcedure.getGroupPrice(group)}} EUR</b>
                            </li>
                        </ol>
                    </li>
                </ul>
            </li>
        </ul>
    </li>
</ul>
<h4>Grupid</h4>
<table style="border:1px solid black;border-collapse:collapse;">
    <tr style="border:1px solid black;font-weight:bold">
        <td style="border:1px solid black;">Nr</td>
        <td style="border:1px solid black;">Grupp</td>
        <td style="border:1px solid black;">Liimeid</td>
        <td style="border:1px solid black;">Päeva majutuse maksumus</td>
        <td style="border:1px solid black;">Kestvus</td>
        <td style="border:1px solid black;">Kestvuse majutuskulu</td>
        <td style="border:1px solid black;">Grupi küttehind<br/><span style="color: red;">(variant A)</span></td>
        <td style="border:1px solid black;">Puude hind grupile<br/><span style="color: red;">(variant B)</span></td>
    </tr>
    <tr style="border:1px solid black;" data-ng-repeat="group in service.house.groups| orderBy:'persons.length'">
        <td style="border:1px solid black;">{{$index + 1}}. </td>
        <td style="border:1px solid black;">{{group.name}}</td>
        <td style="border:1px solid black;">{{group.persons.length}} liiget</td>
        <td style="border:1px solid black;">{{service.groupHouseDayCost(group)}} EUR</td>
        <td style="border:1px solid black;">{{group.hours}} t/{{service.groupDays(group)}} p.</td>
        <td style="border:1px solid black;">{{service.groupHouseCost(group)}} EUR</td>
        <td style="border:1px solid black;">{{group.getGroupHeatingPrice()}} EUR</td>
        <td style="border:1px solid black;">{{service.getHeatingPricePerGroup()}} EUR</td>
    </tr>
</table>
<b>NB! Kui grupi suurused on erinevad, siis variant B puhul läheb suuremate gruppide küttekulu osaliselt väiksemate gruppide kanda. Variant A sisaldab küttekulu jagunemist kõigile gruppidele vastavalt gruppide suurusele. Variant A sisaldab gruppide ajalist osalust.</b>
<h4>Auto Kulud</h4>
<table style="border:1px solid black;border-collapse:collapse;">
    <tr style="border:1px solid black;font-weight:bold">
        <td style="border:1px solid black;">Nr</td>
        <td style="border:1px solid black;">Grupp</td>
        <td style="border:1px solid black;">Grupi suurus</td>
        <td style="border:1px solid black;">Liikme kulu</td>
    </tr>
    <tr style="border:1px solid black;" data-ng-repeat="group in service.carGroups">
        <td style="border:1px solid black;">{{$index + 1}}. </td>
        <td style="border:1px solid black;">{{group.name}}</td>
        <td style="border:1px solid black;">{{group.size()}} liiget</td>
        <td style="border:1px solid black;">{{service.carGroupPersonCost(group)}} EUR/isik</td>
    </tr>
</table>
<div data-ng-show="trueFalseIsVisible">
    trueFalseIsVisible
    <h4>Tõsi on tõsi?</h4>
    <input data-ng-model="numberA" data-ng-change="equalityCheck()"/> = <input data-ng-model="numberB" data-ng-change="equalityCheck()"/> <b>{{numberResult}}</b>
</div>
